package main 

//import "fmt"
//import "unsafe"
import (
	"fmt"
	"unsafe"
)
//https://tour.go-zh.org/basics/11 数据类型演示
func main(){

	var i int8=10
	var j int16=300
	var m int32=600
	var k int64=600

	fmt.Println(i,j,m,k)
	//0011
	i=3
	fmt.Println(i>>1)

	var a uint8=0
	var b uint16=544

	fmt.Println(a,b)

	//int uint 在32位系统上就是32位，64位系统上就是64位
	var c int = 65535
	var d uint = 65535
	//byte = int8
	var e byte = 22
	//rune = int32
	var f rune = 65535

	fmt.Println(c,d,e,f)

	var data byte = 'a'
	fmt.Println(data)

	var g = 101
	fmt.Printf("g 的数据类型为:%T",g)


	var h int64=19

	fmt.Printf("h 的数据类型为:%T,h的字节大小为:%d",h,unsafe.Sizeof(h))
}